:root {
  color-scheme: dark;
  --bg: #112f5e;
  --bg-surface: rgba(255, 255, 255, 0.16);
  --bg-surface-strong: rgba(255, 255, 255, 0.24);
  --text: #f8fbff;
  --text-muted: #d7e3fb;
  --accent: #7cd2ff;
  --accent-soft: rgba(124, 210, 255, 0.24);
  --border: rgba(255, 255, 255, 0.18);
  --shadow: 0 40px 100px rgba(8, 24, 60, 0.24);
  --radius: 28px;
  --max-width: 1280px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fb;
    --bg-surface: rgba(255, 255, 255, 0.82);
    --bg-surface-strong: rgba(255, 255, 255, 0.98);
    --text: #111827;
    --text-muted: #5e6a7f;
    --accent: #0f72ff;
    --accent-soft: rgba(15, 114, 255, 0.14);
    --border: rgba(15, 23, 42, 0.08);
    --shadow: 0 30px 90px rgba(15, 23, 42, 0.12);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at 12% 10%, rgba(124, 210, 255, 0.2), transparent 22%),
              radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.16), transparent 16%),
              linear-gradient(180deg, #173c75 0%, #0f2f60 28%, #0d233f 100%);
  color: var(--text);
  min-height: 100vh;
}

button, input, textarea, a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.masthead {
  min-height: 100vh;
  padding: clamp(1.5rem, 3vw, 4rem) clamp(1.5rem, 4vw, 5rem);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.12), transparent 28%),
              radial-gradient(circle at 18% 12%, rgba(124,210,255,0.24), transparent 16%),
              linear-gradient(160deg, rgba(124,210,255,0.12), transparent 40%, rgba(255,255,255,0.04));
  pointer-events: none;
}

.masthead::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(255,255,255,0.14), transparent 18%),
              linear-gradient(120deg, rgba(255,255,255,0.02), transparent 26%);
  pointer-events: none;
}

.nav-panel {
  width: min(100%, var(--max-width));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  padding: 1rem 0;
  z-index: 20;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

.masthead.scrolled .nav-panel {
  background: rgba(10, 20, 40, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  padding: 0.85rem 0;
}

.brand {
  font-family: 'Oxanium', sans-serif;
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 0.85rem 1rem;
  border-radius: 999px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 1.75rem;
  height: 2px;
  margin: 0.35rem 0;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-content {
  width: min(100%, var(--max-width));
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
  z-index: 1;
}

.hero-copy {
  max-width: 42rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  color: var(--accent);
}

.hero-copy h1 {
  margin: 1rem 0 1rem;
  font-family: 'Oxanium', sans-serif;
  font-size: clamp(3.25rem, 5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-copy p {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 36rem;
  color: #e7efff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 1rem 1.8rem;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #65eefb);
  color: #050816;
  box-shadow: 0 20px 45px rgba(85, 195, 255, 0.28);
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--text);
  background: rgba(255,255,255,0.14);
}

.hero-panel {
  display: grid;
  place-items: center;
}

.hero-card {
  width: min(100%, 26rem);
  padding: 2rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 40px 110px rgba(8, 24, 60, 0.14);
  backdrop-filter: blur(24px);
}

.hero-card-label {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-card-title {
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
  margin: 0 0 1rem;
}

.hero-card p {
  color: var(--text-muted);
  line-height: 1.8;
}

.section {
  width: min(100%, var(--max-width));
  margin: auto;
  padding: clamp(3rem, 5vw, 6rem) 1.5rem;
}

.section-header {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.section-pretitle {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-size: 0.8rem;
}

.section-header h2 {
  margin: 1rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.section-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.section-copy h2 {
  margin: 0.8rem 0 1rem;
}

.section-copy p {
  max-width: 40rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 600;
}

.section-visual {
  position: relative;
  min-height: 24rem;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-radius: calc(var(--radius) + 10px);
  background: radial-gradient(circle at top left, rgba(124, 210, 255, 0.24), transparent 35%),
              linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05));
}

.visual-block {
  flex: 1;
  background: linear-gradient(145deg, rgba(85,195,255,0.28), rgba(255,255,255,0.03));
  border-radius: inherit;
  position: relative;
}

.visual-block::before,
.visual-block::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(35px);
}

.visual-block::before {
  width: 10rem;
  height: 10rem;
  background: rgba(255, 255, 255, 0.1);
  top: -2rem;
  right: -2rem;
}

.visual-block::after {
  width: 12rem;
  height: 12rem;
  background: rgba(85, 195, 255, 0.16);
  bottom: -3rem;
  left: -4rem;
}

.visual-tag {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cards-grid,
.timeline-grid,
.downloads-grid,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.info-card,
.timeline-card,
.download-card,
.contact-card,
.story-card,
.form-card {
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.info-card:hover,
.timeline-card:hover,
.download-card:hover,
.contact-card:hover,
.story-card:hover,
.form-card:hover {
  transform: translateY(-6px);
  border-color: rgba(85, 195, 255, 0.24);
}

.info-card {
  display: grid;
  gap: 1rem;
}

.info-card .icon {
  font-size: 2rem;
}

.info-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.dept-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  position: relative;
}

.dept-link::after {
  content: '?';
  margin-left: 0.5rem;
  font-size: 0.9rem;
  color: var(--accent);
}

.dept-link:hover,
.dept-link:focus-visible {
  color: var(--accent);
}

.info-card p {
  color: var(--text-muted);
  line-height: 1.8;
}

.card-detail {
  display: grid;
  gap: 0.35rem;
  color: var(--text-muted);
}

.card-detail strong {
  color: var(--text);
}

.timeline-grid {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.timeline-card {
  position: relative;
  overflow: hidden;
}

.timeline-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(85, 195, 255, 0.16);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
}

.timeline-card h3 {
  margin: 0 0 0.75rem;
}

.timeline-card p {
  color: var(--text-muted);
  line-height: 1.75;
}

.story-grid {
  display: grid;
  gap: 1.5rem;
}

.story-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 1.5rem;
}

.story-card.reverse {
  grid-template-columns: 1fr 1fr;
}

.story-card.reverse .story-copy {
  text-align: right;
}

.story-media {
  min-height: 18rem;
  border-radius: calc(var(--radius) - 8px);
  background-size: cover;
  background-position: center;
  position: relative;
}

.story-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.25));
  border-radius: inherit;
}

.story-media-1 { background-image: radial-gradient(circle at 20% 30%, rgba(124,210,255,0.32), transparent 28%), linear-gradient(135deg, #10346a 0%, #1a4f91 100%); }
.story-media-2 { background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.22), transparent 24%), linear-gradient(135deg, #124477 0%, #20619e 100%); }
.story-media-3 { background-image: radial-gradient(circle at 40% 70%, rgba(124,210,255,0.28), transparent 24%), linear-gradient(135deg, #0f3c72 0%, #2a5fb1 100%); }

.story-copy span {
  display: block;
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.75rem;
}

.story-copy h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
}

.story-copy p {
  color: var(--text-muted);
  line-height: 1.85;
}

.downloads-grid {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.download-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}

.download-icon {
  font-size: 1.75rem;
}

.download-card h3 {
  margin: 0 0 0.25rem;
}

.download-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.download-badge {
  display: inline-flex;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.contact-grid {
  grid-template-columns: 1fr 1fr 1fr;
}

.form-card {
  display: grid;
  gap: 1rem;
}

.form-card label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.form-card input,
.form-card textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  outline: none;
}

.form-card input:focus,
.form-card textarea:focus {
  border-color: rgba(85,195,255,0.4);
}

.footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2rem 1.5rem 3rem;
  color: var(--text-muted);
}

.footer-inner {
  width: min(100%, var(--max-width));
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a,
.footer-links button {
  color: var(--text-muted);
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

.footer-links button:hover,
.footer-links a:hover,
.footer-links button:focus-visible,
.footer-links a:focus-visible {
  color: var(--accent);
}

.cookie-banner {
  position: fixed;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 24px;
  background: rgba(8, 12, 22, 0.94);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  backdrop-filter: blur(20px);
  z-index: 30;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.cookie-banner p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
}

.cookie-banner button {
  border: none;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #65eefb);
  color: #050816;
  cursor: pointer;
}

.cookie-banner.hidden {
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(5, 12, 30, 0.75);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 50;
}

.modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-inner {
  position: relative;
  width: min(100%, 42rem);
  max-height: min(90vh, calc(100vh - 4rem));
  overflow: auto;
  padding: 2rem;
  border-radius: 32px;
  background: rgba(8, 16, 36, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(22px);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal h2 {
  margin-top: 0;
}

.modal-copy p {
  margin: 1rem 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.modal-copy a {
  color: var(--accent);
}

.reveal-up,
.reveal-right,
.reveal-card {
  opacity: 1;
  transform: translate(0,0);
  transition: transform 0.85s ease, opacity 0.85s ease;
}

.reveal-right {
  transform: translate(0,0);
}

.revealed {
  opacity: 1;
  transform: translate(0,0);
}

@media (max-width: 1024px) {
  .hero-content,
  .section-grid,
  .story-card,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .story-card.reverse {
    grid-template-columns: 1fr;
  }

  .section-visual {
    min-height: 18rem;
  }
}

@media (max-width: 760px) {
  .masthead {
    padding-top: 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links.open {
    position: absolute;
    inset: auto 1.5rem 0;
    background: rgba(7, 9, 15, 0.94);
    padding: 1rem 1.25rem 1.25rem;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.26);
    display: grid;
    gap: 1rem;
  }

  .nav-links.open a {
    display: block;
    padding: 0.9rem 1rem;
    background: rgba(255,255,255,0.04);
  }

  .hero-copy h1 {
    font-size: clamp(2.75rem, 10vw, 3.8rem);
  }

  .hero-panel {
    order: -1;
  }

  .section,
  .footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .cookie-banner {
    left: 1rem;
    right: 1rem;
  }
}

/* Zusätzliche Styles für Tischtennis-Seite */
.training-grid,
.teams-grid,
.results-grid {
  display: grid;
  gap: 1.5rem;
}

.training-grid {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.teams-grid {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.results-grid {
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.training-card,
.team-card,
.results-card {
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.training-card:hover,
.team-card:hover,
.results-card:hover {
  transform: translateY(-6px);
  border-color: rgba(85, 195, 255, 0.24);
}

.training-card h3,
.team-card h3,
.results-card h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.training-card p,
.team-card p {
  margin: 0.5rem 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.team-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.team-stats {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--accent);
}

.team-stats span {
  background: rgba(124, 210, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
}

.match-result,
.upcoming-match {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  margin: 0.5rem 0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
}

.match-result .date,
.upcoming-match .date {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.match-result .teams,
.upcoming-match .teams {
  font-weight: 500;
}

.upcoming-match .time {
  font-size: 0.9rem;
  color: var(--text-muted);
}
